<?php $str_cat  = ''; ?>
<div class="col-md-3 col-xs-3 col-sm-5 sidebar-cat">
    <div class="text-categ">CATEGORIAS</div>
    <ul class="menu-categorias">
        <?php if (count($categories_count) > 0) { ?>
            <?php foreach ($categories_count as $cat) : ?>
                <li class="item"><a
                        href="<?php echo ($cat->TOTAL > 0 ? site_url('lotes/' . $cat->SLUG . '/todos') : '#nodata'); ?>">
                        <i class="ico-float"><img
                                src="/public/images/icones/<?php echo $cat->SLUG; ?>.png" title="Maxbid leilões on line - <?php  echo $cat->SLUG; ?>" alt="Maxbid leilões on line - <?php  echo $cat->SLUG; ?>" /></i> <span><?php echo $cat->NAME; ?><em
                                class="total-by-categorie"><?php echo (int) $cat->TOTAL; ?></em></span>
                    </a></li>
                    <?php   $cat_total = (int) $cat->TOTAL;$str_cat .= '<li><a href="'.($cat->TOTAL > 0 ? site_url('lotes/' . $cat->SLUG . '/todos') : '#nodata').'">'.$cat->NAME.'<span class="media-num-lotes">'.$cat_total.'</span></a></li>'; ?>
            <?php endforeach; ?>
        <?php } ?>
    </ul>
    <ul class="menu-categorias">
        <li class="item">
            <div class="back-inferior-btn"></div> <span
                class="text-total-leiloes">TOTAL DE LOTES EM LEILAO <em
                    class="total-by-categorie2"></em>
            </span>
        </li>
    </ul>
    <?php if (count($estados_count) > 0) { ?>
        <div id="menu-estados">
            <ul>
                <?php foreach ($estados_count as $row) : ?>
                    <li class="menu-leilao-estados"><a
                            href="<?php echo site_url('lotes/todos/todos/localizados-em-' . $row->UF); ?>">
                                <?php echo $row->NOME; ?>
                            <span>(<?php echo $row->TOTAL; ?>)</span>
                        </a></li>
                <?php endforeach; ?> 

            </ul>
        </div>
    <?php } ?>
</div>

<?php
$this->load->vars('menuMobile',$str_cat);
?>
